package jwebtest.oracle;

import java.util.Map;

import org.junit.Test;

import com.jweb.plugin.jdbc.JdbcTemplate;
import com.jweb.util.FormatUtil;

public class jdbcOracle {

	@Test
	public void test() {
		try {
			JdbcTemplate jdbc = new JdbcTemplate("oracle.jdbc.driver.OracleDriver", "jdbc:oracle:thin:@localhost:1521:ORCL", "scott", "root");
			Map<String, Object> map = jdbc.query("SELECT SYSDATE from dual", null);
			System.out.println(FormatUtil.toJSONString(map));
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
